package com.kyh.sys.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.kyh.mapper.base.BaseMapper;
import com.kyh.sys.entity.RoleButton;

@Mapper
public interface RoleButtonMapper extends BaseMapper<RoleButton> {

	public RoleButton getByUk(@Param("roleId") Long roleId, @Param("buttonId") Long buttonId);

    public void deleteByUk(@Param("roleId") Long roleId, @Param("buttonId") Long buttonId);

    public void deleteTrueByButtonId(@Param("buttonId") Long buttonId);

    public void deleteTrueByRoleId(@Param("roleId") Long roleId);

    public void deleteTrueByMenuId(@Param("menuId") Long menuId);
	
}